package cn.ex.ymcc.feign;


import cn.ex.ymcc.feign.fallback.MediaFeignClientFactory;
import cn.ex.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-media",fallbackFactory = MediaFeignClientFactory.class)
public interface MediaFeignClient {

    //根据章节ID获取视频列表
    @GetMapping("/mediaFile/selectByCourseId/{id}")
    JSONResult selectByChapterId(@PathVariable("id")Long id);
}
